package top.lilele.adminSystem.service;

import cn.hutool.extra.mail.MailAccount;
import cn.hutool.extra.mail.MailUtil;
import org.springframework.stereotype.Service;

/**
 * @author lilele
 */
@Service
public class EmailService {

    public void sendMail() {
        MailAccount mailAccount = new MailAccount();
        mailAccount.setHost("smtp.163.com");
        mailAccount.setFrom("一站式平台 <15927651191@163.com>");
        mailAccount.setPort(25);
        mailAccount.setPass("TDIEUWSESSVNEHWM");
        MailUtil.send(mailAccount, "99577925@qq.com", "163邮箱", "内容", false, null);
    }
}
